package edu.rit.teamrocket.model;

import java.io.Serializable;
import java.util.Calendar;

public class Date implements Serializable 
{

	public int day, month, year;
	
	public Date(int day, int month, int year)
	{
		this.day = day;
		this.month = month;
		this.year = year;
	}
	
	public Date()
	{
		Calendar calendar = Calendar.getInstance();

		this.day = calendar.get(Calendar.DATE);
		this.month = calendar.get(Calendar.MONTH);
		this.year = calendar.get(Calendar.YEAR);
	}
	
	public int getDay()
	{
		return this.day;
	}
	
	public int getMonth()
	{
		return this.month;
	}
	
	public int getYear()
	{
		return this.year;
	}
	
	public boolean equals(Date date)
	{
		if ((this.day == date.day) && (this.month == date.month) && (this.year == date.year))
			return true;
		else return false;
	}
}
